import ajax from './ajax'

const BASE_URL = '/api'
// ---------------------------------------------------------------------------------------------------------------------
// 查看交通实时态势

export const trafficRealTIme = () => ajax(BASE_URL + '/traffic/selectTrafficRealTimeInfo')
// 查看基础数据信息
export const selectBasics = () => ajax(BASE_URL + '/section/selectBasics')
// 查看路段拥堵top10
export const selectSection = () => ajax(BASE_URL + '/traffic/selectsection')

// 查看路段流量top10
export const selectFlow = () => ajax(BASE_URL + '/traffic/selectflow')
// 查询事件清单
export const selectEvenit = () => ajax(BASE_URL + '/section/selectEvenit')
// 添加交通实时态势
export const addTrafficRealTime = () => ajax(BASE_URL + '/traffic/getTrafficJamsRate')

// 实时交通地图态势
export const trafficMapType = () => ajax(BASE_URL + '/traffic/getMapInfo')

export const trafficJamsRate = () => ajax(BASE_URL + '/traffic/getTrafficJamsRate')

// 视频事件
export const cameraInfoList = () => ajax(BASE_URL + '/section/cameraInfoList')
